<?php

use Illuminate\Database\Seeder;

class UserdetailSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //循环数据
        $data=[];
        for($i=0;$i<=200;$i++){
        	$tmp=[];
        	$tmp['user_id']=$i;
        	$data[]=$tmp;
        }
        DB::table('userdetail')->insert($data);
    }
}
